home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
00
/
2
/
DISK0028.ZIP
/
GRAFGE.DOC
< prev
next >
Wrap
Text File
|
1983-03-02
|
2KB
|
42 lines
typ grafge.doc
1 ' *****************
2 ' ** GRAFGEN.DOC **
3 ' *****************
4 '
5 ' by Wes Meier
6 ' 70215,1017
7 '
8 ' January 28, 1983
9 '
10 'This documentation assumes the user has at least 96K of RAM.
11 '
12 'The data stored at locations 0000:007C - 0000:007F is an address used by
13 'BASIC as a pointer to a table used for the definition of the top 128 ASCII
14 'characters. Once the character set is in memory, this address must be made
15 'to point to the beginning of the table.
16 '
17 'The easiest place to store the table is immediately following the 64K
18 'segment used by BASIC. The address stored at 0000:0510 - 0000:0511 points
19 'to the beginning of this segment. The address is stored in the LSB/MSB
20 'format. If we add 10H to the MSB and 1H to the LSB the result is an
21 'address pointing to the first byte following BASIC's segment.
22 '********************************************************************
23 ' This code should be included in any program using a character set
24 ' created by GRAFGEN.BAS.
25 ' Assume the set has been BSAVED as "CHARSET.BIN".
26 '********************************************************************
27 DEF SEG=0 'Point to bottom of memory.
28 POKE &H7C,0 'Zero LSB of Character Table Offset Pointer.
29 POKE &H7D,0 'Zero LSB of Character Table Offset Pointer.
30 POKE &H7E,PEEK(&H510)+1 'BASIC's LSB Pointer + 1
31 POKE &H7F,PEEK(&H511)+&H10 'BASIC's MSB Pointer + 10H
32 'Now the character set pointers are directed to the first byte following
33 'the 64K segment used by BASIC.
34 DEF SEG=256*PEEK(&H7F)+PEEK(&H7E) 'Point to character table segment.
35 BLOAD "CHARSET.BIN",0 'Load in the table saved by GRAFGEN.BAS.
36 DEF SEG 'Reset segment pointer to default.
37 'End of required code.
38 END 'of GRAFGEN.DOC
SIG/Access: